export const rowConditions = [
  {
    code: 'P01',
    title: '⻋损情况',
    options: [
      { value: 1, label: '有⻋损' },
      { value: 0, label: '⽆⻋损' },
    ],
  },
  {
    code: 'P02',
    title: '三责保额',
    options: [
      { value: '11', label: '三责保额 300 万及以上' },
      { value: '22', label: '三责保额 200万 - 300万' },
      // { value: '33', label: '三责保额 200 万以下' },
    ],
  },
  {
    code: 'P03',
    title: '续保类型',
    options: [
      { value: 'a1', label: '新续' },
      { value: 'a2', label: '转续' },
      { value: 'a3', label: '续续 2-3' },
      // { value: 'a4', label: '续续 4-5' },
      // { value: 'a5', label: '续续 6+' },
    ],
  },
  //
]

export const mergedColumns = [
  {
    title: '合并后的 title',
    values: [
      { P01: 1, P02: 22, P03: 'a1' },
      { P01: 1, P02: 22, P03: 'a2' },
      { P01: 1, P02: 22, P03: 'a3' },
    ],
  },
]

export const colConditions = [
  {
    code: 'P05',
    title: '性别',
    options: [
      { value: '0', label: '女' },
      { value: '1', label: '男' },
    ],
  },
  { code: 'P04', title: '交商含 NCD 标费预赔' },
  // { code: 'P05', title: '交商含 NCD 标费预赔5' },
]

export const results = [{ code: 'R01', title: '费率', dataType: 'number' }]

export const colResults = [
  { code: 'R02', title: '费率-2', dataType: 'number', linkProps: { openType: 'modal', label: '点击修改' } },
  { code: 'R03', title: '费率 333', dataType: 'number', linkProps: { openType: 'drawer' } },
]

export const highLightList = [
  { P01: 1, P02: '11', P03: 'a1', P04: '[0, 0.54)', P05: '0', highLightProps: 'P04' },
  { P01: 1, P02: '11', P03: 'a2', P04: '[0, 0.54)', P05: 1, highLightProps: { P01: 1, P02: '11', P03: 'a2' } },
]

export const initData = [
  {
    P01: 1,
    P02: '11',
    P03: 'a1',
    P04: '[0, 0.54)',
    P05: '0',
    R01: 0.851,
    $highlight: {
      P04: 'primary',
      P05: { color: '#333333', backgroundColor: '#ffa39e' },
      R01: true,
    },
  },
  {
    P01: 1,
    P02: '11',
    P03: 'a2',
    P04: '[0, 0.54)',
    P05: '1',
    R01: 0.861,
    $highlight: {
      P04: 'default',
      // P05: { color: '#ffffff', backgroundColor: '#820014' },
      R01: true,
    },
  },
  { P01: 1, P02: '22', P03: 'a1', P04: '[0, 0.54)', P05: 0, R01: 1.051 },
  { P01: 1, P02: '22', P03: 'a2', P04: '[0, 0.54)', P05: '0', R01: 1.051 },
  { P01: 0, P02: '11', P03: 'a1', P04: '[0, 0.54)', P05: '0', R01: 1.051 },
  {
    P01: 0,
    P02: '11',
    P03: 'a2',
    P04: '[0, 0.54)',
    P05: 1,
    R01: 1.051,
    $highlight: {
      // P04: 'default',
      P04: true,
      // P05: { color: '#ffffff', backgroundColor: '#820014' },
      R01: true,
    },
  },
  { P01: 0, P02: '22', P03: 'a1', P04: '[0, 0.54)', P05: '0', R01: 1.11 },
  { P01: 0, P02: '22', P03: 'a2', P04: '[0, 0.54)', P05: '0', R01: 1.11 },
  {
    P04: '[0, 0.54)',
    P05: '0',
    R02: 0.123,
    R03: 0.234,
    $highlight: {
      R02: 'primary',
      // R03: { color: '#ffffff', backgroundColor: '#ff000020' },
    },
  },
  {
    P04: '[0, 0.54)',
    P05: '1',
    R02: 0.345,
    R03: 0.456,
    $highlight: {
      R03: true,
    },
  },

  { P01: 1, P02: '11', P03: 'a1', P04: '[0.54, 0.58)', P05: '0', R01: 0.852 },
  { P01: 1, P02: '11', P03: 'a2', P04: '[0.54, 0.58)', P05: 1, R01: 0.862 },
  { P01: 1, P02: '22', P03: 'a1', P04: '[0.54, 0.58)', P05: '0', R01: 1.052 },
  { P01: 1, P02: '22', P03: 'a2', P04: '[0.54, 0.58)', P05: 0, R01: 1.052 },
  { P01: 0, P02: '11', P03: 'a1', P04: '[0.54, 0.58)', P05: '0', R01: 1.052 },
  { P01: 0, P02: '11', P03: 'a2', P04: '[0.54, 0.58)', P05: 1, R01: 1.052 },
  { P01: 0, P02: '22', P03: 'a1', P04: '[0.54, 0.58)', P05: '0', R01: 1.12 },
  { P01: 0, P02: '22', P03: 'a2', P04: '[0.54, 0.58)', P05: '0', R01: 1.12 },

  { P01: 1, P02: '11', P03: 'a1', P04: '[0.58, 0.59)', P05: '0', R01: 0.853 },
  { P01: 1, P02: '11', P03: 'a2', P04: '[0.58, 0.59)', P05: '1', R01: 0.863 },
  { P01: 1, P02: '22', P03: 'a1', P04: '[0.58, 0.59)', P05: '0', R01: 1.053 },
  { P01: 1, P02: '22', P03: 'a2', P04: '[0.58, 0.59)', P05: 1, R01: 1.053 },
  { P01: 0, P02: '11', P03: 'a1', P04: '[0.58, 0.59)', P05: '0', R01: 1.053 },
  { P01: 0, P02: '11', P03: 'a2', P04: '[0.58, 0.59)', P05: '0', R01: 1.053 },
  { P01: 0, P02: '22', P03: 'a1', P04: '[0.58, 0.59)', P05: '1', R01: 1.13 },
  { P01: 0, P02: '22', P03: 'a2', P04: '[0.58, 0.59)', P05: '0', R01: 1.13 },
  { P04: '[0.58, 0.59)', P05: '0', R02: 0.85211, _R03: 0.8531 },
  { P04: '[0.58, 0.59)', P05: '1', _R02: 0.85222, R03: 0.8532 },

  { P01: 1, P02: '11', P03: 'a1', P04: '[0.60, 0.66)', P05: '0', R01: 0.854 },
  { P01: 1, P02: '11', P03: 'a2', P04: '[0.60, 0.66)', P05: '0', R01: 0.864 },
  { P01: 1, P02: '22', P03: 'a1', P04: '[0.60, 0.66)', P05: '1', R01: 1.054 },
  { P01: 1, P02: '22', P03: 'a2', P04: '[0.60, 0.66)', P05: '0', R01: 1.054 },
  { P01: 0, P02: '11', P03: 'a1', P04: '[0.60, 0.66)', P05: '0', R01: 1.054 },
  { P01: 0, P02: '11', P03: 'a2', P04: '[0.60, 0.66)', P05: '1', R01: 1.054 },
  { P01: 0, P02: '22', P03: 'a1', P04: '[0.60, 0.66)', P05: '0', R01: 1.14 },
  { P01: 0, P02: '22', P03: 'a2', P04: '[0.60, 0.66)', P05: '0', R01: 1.14 },
  { P04: '[0.60, 0.66)', P05: '0', R02: 0.85211, R03: 0.8531 },
]
